import request from "@/util/request";

export function getLineCharts(time){
    return request({
        url: 'http://localhost:8300/statistics/lineChart/' + time,
        method: 'get'
    })
}

export function getLineChartsByStatus(status, time){
    return request({
        url: 'http://localhost:8300/statistics/lineChart/' + status + '/' + time,
        method: 'get'
    })
}

export function getPieChartInit(time){
    return request({
        url: 'http://localhost:8300/statistics/pieChart/init/' + time,
        method: 'get'
    })
}

export function getRadarChartInit(time){
    return request({
        url: 'http://localhost:8300/statistics/radarChart/init/' + time,
        method: 'get'
    })
}

export function getBarChartInit(time){
    return request({
        url: 'http://localhost:8300/statistics/barChart/init/' + time,
        method: 'get'
    })
}